Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

extended-spine

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extended-spine - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

26

lib/Controller.js
// Generated by CoffeeScript 1.6.3
(function() {
var Controller, Spine, isMobile,
var $, Controller, Spine, isMobile,
__hasProp = {}.hasOwnProperty,

@@ -11,7 +11,7 @@ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

$ = null;
Controller = (function(_super) {
__extends(Controller, _super);
Controller.jQuery = null;
function Controller(el) {

@@ -21,3 +21,3 @@ if (el == null) {

}
if (!this.el && el instanceof Controller.jQuery) {
if (!this.el && el instanceof $) {
this.el = el;

@@ -33,10 +33,10 @@ }

}
Controller.jQuery = jQuery;
jQuery.fn.hasAttr = function(name) {
$ = jQuery;
$.fn.hasAttr = function(name) {
var attr;
attr = jQuery(this).attr(name);
attr = $(this).attr(name);
return typeof attr !== 'undefined' && attr !== false;
};
jQuery.fn.getController = function() {
return jQuery(this).data('controller');
$.fn.getController = function() {
return $(this).data('controller');
};

@@ -54,3 +54,3 @@ if (scope !== false) {

if (parent_prototype.events) {
events = Controller.jQuery.extend({}, parent_prototype.events, events);
events = $.extend({}, parent_prototype.events, events);
}

@@ -95,3 +95,3 @@ context = parent_prototype;

}
scope = this.jQuery(scope);
scope = $(scope);
result = [];

@@ -102,3 +102,3 @@ if (scope.hasAttr('data-controller')) {

scope.find('*[data-controller]').each(function(i, el) {
el = _this.jQuery(el);
el = $(el);
return result.push(el);

@@ -147,3 +147,3 @@ });

if (el !== null) {
el = this.jQuery(el);
el = $(el);
}

@@ -150,0 +150,0 @@ computer = el.hasAttr('data-computer');

{
"name": "extended-spine",
"description": "Some extensions for spine framework",
"version": "1.0.2",
"version": "1.0.3",
"author": {

@@ -6,0 +6,0 @@ "name": "David Kudera",

@@ -96,3 +96,3 @@ # extended-spine

* 1.0.2
* 1.0.2 - 1.0.3
+ Bug with inheritance

@@ -99,0 +99,0 @@

@@ -132,3 +132,3 @@ /** Generated by SimQ **/

(function() {
var Controller, Spine, isMobile,
var $, Controller, Spine, isMobile,
__hasProp = {}.hasOwnProperty,

@@ -141,7 +141,7 @@ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

$ = null;
Controller = (function(_super) {
__extends(Controller, _super);
Controller.jQuery = null;
function Controller(el) {

@@ -151,3 +151,3 @@ if (el == null) {

}
if (!this.el && el instanceof Controller.jQuery) {
if (!this.el && el instanceof $) {
this.el = el;

@@ -163,10 +163,10 @@ }

}
Controller.jQuery = jQuery;
jQuery.fn.hasAttr = function(name) {
$ = jQuery;
$.fn.hasAttr = function(name) {
var attr;
attr = jQuery(this).attr(name);
attr = $(this).attr(name);
return typeof attr !== 'undefined' && attr !== false;
};
jQuery.fn.getController = function() {
return jQuery(this).data('controller');
$.fn.getController = function() {
return $(this).data('controller');
};

@@ -184,3 +184,3 @@ if (scope !== false) {

if (parent_prototype.events) {
events = Controller.jQuery.extend({}, parent_prototype.events, events);
events = $.extend({}, parent_prototype.events, events);
}

@@ -225,3 +225,3 @@ context = parent_prototype;

}
scope = this.jQuery(scope);
scope = $(scope);
result = [];

@@ -232,3 +232,3 @@ if (scope.hasAttr('data-controller')) {

scope.find('*[data-controller]').each(function(i, el) {
el = _this.jQuery(el);
el = $(el);
return result.push(el);

@@ -277,3 +277,3 @@ });

if (el !== null) {
el = this.jQuery(el);
el = $(el);
}

@@ -280,0 +280,0 @@ computer = el.hasAttr('data-computer');

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc