Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Backbone-Associations v0.6.1

  • Loading branch information...
commit 51e89c1adb4ff101b591ae945e59a7dac309d8f7 1 parent 7f17559
@jdkanani jdkanani authored
View
4 CHANGELOG.md
@@ -1,3 +1,7 @@
+### Version 0.6.1 - [Diff](https://github.com/dhruvaray/backbone-associations/compare/v0.6.0...v0.6.1)
+
+* Add underscore as explicit dependency: Node js compatibility
+
### Version 0.6.0 - [Diff](https://github.com/dhruvaray/backbone-associations/compare/v0.5.5...v0.6.0)
* Significantly improve event bubbling performance. Only bubble events if objects are listening to those event paths.
View
2  backbone-associations-min.js
@@ -1,4 +1,4 @@
-(function(x,f){if("function"===typeof define&&define.amd)define(["underscore","backbone"],function(h,u){f(x,u,h)});else if("undefined"!==typeof exports){var h=require("underscore"),u=require("backbone");f(x,u,h)}else f(x,x.Backbone,x._)})(this,function(x,f,h){var u,t,y,z,l,v,F,G,n,C,H,s={};u=f.Model;t=f.Collection;y=u.prototype;l=t.prototype;z=f.Events;f.Associations={VERSION:"0.6.0"};f.Associations.scopes=[];var I=function(){return n},D=function(a){if(!h.isString(a)||1>h.size(a))a=".";n=a;F=RegExp("[\\"+
+(function(x,f){if("function"===typeof define&&define.amd)define(["underscore","backbone"],function(h,u){f(x,u,h)});else if("undefined"!==typeof exports){var h=require("underscore"),u=require("backbone");f(x,u,h)}else f(x,x.Backbone,x._)})(this,function(x,f,h){var u,t,y,z,l,v,F,G,n,C,H,s={};u=f.Model;t=f.Collection;y=u.prototype;l=t.prototype;z=f.Events;f.Associations={VERSION:"0.6.1"};f.Associations.scopes=[];var I=function(){return n},D=function(a){if(!h.isString(a)||1>h.size(a))a=".";n=a;F=RegExp("[\\"+
n+"\\[\\]]+","g");G=RegExp("[^\\"+n+"\\[\\]]+","g")};try{Object.defineProperty(f.Associations,"SEPARATOR",{enumerable:!0,get:I,set:D})}catch(L){}f.Associations.Many=f.Many="Many";f.Associations.One=f.One="One";f.Associations.Self=f.Self="Self";f.Associations.SEPARATOR=".";f.Associations.getSeparator=I;f.Associations.setSeparator=D;f.Associations.EVENTS_BUBBLE=!0;f.Associations.EVENTS_WILDCARD=!0;f.Associations.EVENTS_NC=!1;D();v=f.AssociatedModel=f.Associations.AssociatedModel=u.extend({relations:void 0,
_proxyCalls:void 0,on:function(a,d,c){var b=z.on.apply(this,arguments);if(f.Associations.EVENTS_NC)return b;var p=/\s+/;h.isString(a)&&a&&!p.test(a)&&d&&(p=E(a))&&(s[p]="undefined"===typeof s[p]?1:s[p]+1);return b},off:function(a,d,c){if(f.Associations.EVENTS_NC)return z.off.apply(this,arguments);var b=/\s+/,p=this._events,e={},g=p?h.keys(p):[],r=!a&&!d&&!c,w=h.isString(a)&&!b.test(a);if(r||w)for(var b=0,k=g.length;b<k;b++)e[g[b]]=p[g[b]]?p[g[b]].length:0;var q=z.off.apply(this,arguments);if(r||w)for(b=
0,k=g.length;b<k;b++)(r=E(g[b]))&&(s[r]=p[g[b]]?s[r]-(e[g[b]]-p[g[b]].length):s[r]-e[g[b]]);return q},get:function(a){var d=y.get.call(this,a);return d?d:this._getAttr.apply(this,arguments)},set:function(a,d,c){var b;h.isObject(a)||null==a?(b=a,c=d):(b={},b[a]=d);a=this._set(b,c);this._processPendingEvents();return a},_set:function(a,d){var c,b,p,e,g=this;if(!a)return this;for(c in a)if(b||(b={}),c.match(F)){var f=J(c);e=h.initial(f);f=f[f.length-1];e=this.get(e);e instanceof v&&(e=b[e.cid]||(b[e.cid]=
View
4 backbone-associations.js
@@ -1,5 +1,5 @@
//
-// Backbone-associations.js 0.6.0
+// Backbone-associations.js 0.6.1
//
// (c) 2013 Dhruva Ray, Jaynti Kanani, Persistent Systems Ltd.
// Backbone-associations may be freely distributed under the MIT license.
@@ -47,7 +47,7 @@
BackboneEvent = Backbone.Events;
Backbone.Associations = {
- VERSION: "0.6.0"
+ VERSION: "0.6.1"
};
// Alternative scopes other than root
View
2  bower.json
@@ -1,6 +1,6 @@
{
"name":"backbone-associations",
- "version": "0.6.0",
+ "version": "0.6.1",
"main":"./backbone-associations.js",
"dependencies":{
"backbone":">=1.0.0",
View
4 docs/backbone-associations.html
@@ -27,7 +27,7 @@
<div class="pilwrap ">
<a class="pilcrow" href="#section-1">&#182;</a>
</div>
- <p> Backbone-associations.js 0.6.0</p>
+ <p> Backbone-associations.js 0.6.1</p>
<p> (c) 2013 Dhruva Ray, Jaynti Kanani, Persistent Systems Ltd.
Backbone-associations may be freely distributed under the MIT license.
@@ -182,7 +182,7 @@
BackboneEvent = Backbone.Events;
Backbone.Associations = {
- VERSION: <span class="string">"0.6.0"</span>
+ VERSION: <span class="string">"0.6.1"</span>
};</pre></div></div>
</li>
View
2  package.json
@@ -30,7 +30,7 @@
"test":"phantomjs test/lib/runner.js test/test-suite.html?noglobals=true"
},
"main":"backbone-associations.js",
- "version": "0.6.0",
+ "version": "0.6.1",
"repository":"git://github.com/dhruvaray/backbone-associations.git",
"licenses":[
{
Please sign in to comment.
Something went wrong with that request. Please try again.