diff --git a/bower.json b/bower.json index 90c222c..f1e4e4a 100644 --- a/bower.json +++ b/bower.json @@ -22,7 +22,7 @@ "dependencies": { "backbone": "~1.x" }, - "version": "0.4.9", + "version": "0.4.10", "main": [ "dist/backbone.iobind.js", "dist/backbone.iosync.js" diff --git a/dist/backbone.iobind.js b/dist/backbone.iobind.js index bb0694b..c4b9683 100644 --- a/dist/backbone.iobind.js +++ b/dist/backbone.iobind.js @@ -31,7 +31,7 @@ /*! * Version */ -Backbone.Model.prototype.ioBindVersion = '0.4.8'; +Backbone.Model.prototype.ioBindVersion = '0.4.10'; /** * # .ioBind(event, callback, [context]) @@ -178,7 +178,7 @@ Backbone.Model.prototype.ioUnbindAll = function (io) { * Version */ -Backbone.Collection.prototype.ioBindVersion = '0.4.8'; +Backbone.Collection.prototype.ioBindVersion = '0.4.10'; /** * # ioBind diff --git a/dist/backbone.iobind.min.js b/dist/backbone.iobind.min.js index 1d187ec..6f3c3a9 100644 --- a/dist/backbone.iobind.min.js +++ b/dist/backbone.iobind.min.js @@ -5,4 +5,4 @@ * https://github.com/logicalparadox/backbone.iobind */ -(function(a,b){if(typeof define=="function"&&define.amd)define(["backbone","underscore","socket.io","jquery"],b);else if(typeof exports=="object"){var c=require("underscore"),d=require("backbone"),e=require("socket.io-client"),f=require("jquery");module.exports=b(d,c,e,f)}else b(a.Backbone,a._,a.io,a.jQuery||a.Zepto||a.ender||a.$)})(this,function(a,b,c,d){return a.Model.prototype.ioBindVersion="0.4.8",a.Model.prototype.ioBind=function(c,d,e,f){var g=this._ioEvents||(this._ioEvents={}),h=b.result(this,"url")+":"+c,i=this;"function"==typeof d&&(f=e,e=d,d=this.socket||window.socket||a.socket);var j={name:c,global:h,cbLocal:e,cbGlobal:function(){var a=[c];a.push.apply(a,arguments),i.trigger.apply(i,a)}};return this.bind(j.name,j.cbLocal,f||i),d.on(j.global,j.cbGlobal),g[j.name]?g[j.name].push(j):g[j.name]=[j],this},a.Model.prototype.ioUnbind=function(c,d,e){var f=this._ioEvents||(this._ioEvents={}),g=this.url()+":"+c;"function"==typeof d&&(e=d,d=this.socket||window.socket||a.socket);var h=f[c];if(!b.isEmpty(h)){if(e&&"function"==typeof e){for(var i=0,j=h.length;i", "name": "backbone.iobind", "description": "Bind socket.io events to backbone models & collections.", - "version": "0.4.9", + "version": "0.4.10", "homepage": "https://noveogroup.github.io/backbone.iobind", "repository": { "type": "git",