Created
December 10, 2014 07:03
-
-
Save jotak/bcfbc7abb3f80be059a2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// File Controller.js | |
function search(str) { | |
var layers = getAllActiveLayers(); | |
layers.forEach(function(layer) { | |
layer.search(str); | |
}); | |
} | |
// File MpdLayer.js | |
var MpdLayer = (function () { | |
function MpdLayer() { | |
} | |
MpdLayer.prototype.search = function (str) { | |
// run search str | |
}; | |
return MpdLayer; | |
})(); | |
// File SpopLayer.js | |
var SpopLayer = (function () { | |
function SpopLayer() { | |
} | |
SpopLayer.prototype.search = function (str) { | |
// run search str | |
}; | |
return SpopLayer; | |
})(); | |
// File GoogleLayer.js | |
var GoogleLayer = (function () { | |
function GoogleLayer() { | |
} | |
GoogleLayer.prototype.search = function (str) { | |
// run search str | |
}; | |
return GoogleLayer; | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment