Skip to content

Commit

Permalink
i guess now you're supposed to inject deps into for providers. Couldn…
Browse files Browse the repository at this point in the history
…'t get it to work otherwise.
  • Loading branch information
dnakov committed May 31, 2014
1 parent 9fcd3fc commit 9402263
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions jsSrc/ngForce-remoteObjects.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
*
*/
angular.module('ngForce')
.provider('remoteObjects', ['$q','$log',
function ($q, $log) {
this.$get = function () {
.provider('remoteObjects', [
function () {
this.$get = function ($q, $rootScope) {
// default namespace
var namespace = "SObjectModel";
// app.config setter for the namespace.
Expand Down
4 changes: 2 additions & 2 deletions jsSrc/ngForce-sfTemplate.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ angular.module('ngForce').provider('sfTemplate', [
'$http',
'$templateCache',
'$log',
function ($q, $http, $templateCache, $log) {
this.$get = function () {
function () {
this.$get = function ($q, $http, $templateCache, $log) {
// Add substrings which are unique to the script tags you wish to block.
// Note: Regex support would be nice. The problem is that JS files have `.`
// as part of the file path, which is symbol reserved by Regex.
Expand Down

0 comments on commit 9402263

Please sign in to comment.